import UIBase from "../view/UIBase";
import UIMgr from "../view/UIMgr";
import EGUIMain from "./EGUIMain";


export default class EGUITask extends UIBase {
    protected onInit(): void {
        this.skinPath = 'mi/example/EGUITask';
    }

    protected onButtonClick(button: cc.Button): void {
        switch (button.node.name) {
            case 'BtnReturn':
                UIMgr.openPrev();
                break;
            case 'BtnMain':
                UIMgr.open(EGUIMain);
                break;
        }
    }
}
